<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Float</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .float {
            float: left;
            width: 100px;
            height: 100px;
            margin: 10px;
        }

        .around {
            background-color: green;
            width: 300px;
            padding: 10px;
        }
    </style>
</head>

<body>
    <div>
        <p>哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇</p>
        <!-- 浮动盒子只会影响盒子后面的文档流，不影响前面的文档流 -->
        <img src="./djs.jpg" alt="" class="float">
        <p class="around">wwwwwwwwwww wwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwS
            eeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeee
            Aeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
        </p>
        <!-- 英文单词太长不换行导致环绕失效 -->
        <!-- 能在图片左侧排开的，就可以置于图片左侧；太长了排不开的就，放图片下方比较宽的地方了，然后超出部分可能会大于width -->
    </div>
    <div>
        <img src="./djs.jpg" alt="" class="float">
        <p class="around">Harry Potter is a series of fantasy novels written by British author J. K. Rowling. The novels
            chronicle the life of a
            young wizard, Harry Potter, and his friends Hermione Granger and Ron Weasley, all of whom are students at
            Hogwarts
            School of Witchcraft and Wizardry.</p>
    </div>
</body>

</html>